import request from '@/utils/request'

// 查询主子表测试列表
export function listPtchildtable(query) {
  return request({
    url: '/manage/ptchildtable/list',
    method: 'get',
    params: query
  })
}

// 查询主子表测试详细
export function getPtchildtable(customerId) {
  return request({
    url: '/manage/ptchildtable/' + customerId,
    method: 'get'
  })
}

// 新增主子表测试
export function addPtchildtable(data) {
  return request({
    url: '/manage/ptchildtable',
    method: 'post',
    data: data
  })
}

// 修改主子表测试
export function updatePtchildtable(data) {
  return request({
    url: '/manage/ptchildtable',
    method: 'put',
    data: data
  })
}

// 删除主子表测试
export function delPtchildtable(customerId) {
  return request({
    url: '/manage/ptchildtable/' + customerId,
    method: 'delete'
  })
}
